import 'package:flutter/material.dart';

class Page2 extends StatelessWidget {
  const Page2({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(
          "有害垃圾详情",
        ),
        centerTitle: true,
        elevation: 5.0,
      ),
      body: Center(
          child: Container(
        // color: const Color(0xffb6ad90),
        height: 550,
        width: 400,
        decoration: BoxDecoration(
          border: Border.all(
            width: 4.0,
            color: const Color(0xff414833),
          ),
          borderRadius: BorderRadius.circular(20.0),
        ),
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Container(
              // width: 400,
              // decoration: BoxDecoration(
              //   border: Border(
              //     top: BorderSide(
              //       width: 4.0,
              //       color: const Color(0xff936639),
              //     ),
              //   ),
              // ),
              alignment: Alignment.center,
              child: Text(
                "有害垃圾",
                style: TextStyle(
                  color: const Color(0xff414833),
                  fontWeight: FontWeight.w800,
                  fontSize: 35,
                ),
              ),
            ),
            SizedBox(height: 12),
            Container(
              width: 380,
              decoration: BoxDecoration(
                border: Border(
                  top: BorderSide(
                    width: 4.0,
                    color: const Color(0xff414833),
                  ),
                ),
              ),
              alignment: Alignment.center,
              child: Text(
                "有害垃圾是指对人体健康或者自然环境造成直接或者潜在危害的生活废弃物",
                style: TextStyle(
                  color: const Color(0xff414833),
                  fontWeight: FontWeight.w800,
                  fontSize: 20,
                ),
              ),
            ),
            SizedBox(height: 5),
            Container(
              width: 380,
              decoration: BoxDecoration(
                border: Border(
                  top: BorderSide(
                    width: 4.0,
                    color: const Color(0xff414833),
                  ),
                ),
              ),
              alignment: Alignment.center,
              child: Text(
                '''主要包括
废电池、废日光灯管、废水银温度计、过期药品等，需要特殊安全处理的垃圾，
以及废镍镉电池和废氧化汞电池、废荧光灯管、废药品及其包装物等
需要特殊处理的垃圾''',
                style: TextStyle(
                  color: const Color(0xff414833),
                  fontWeight: FontWeight.w600,
                  // fontStyle: FontStyle.italic,
                  fontSize: 24,
                ),
                textAlign: TextAlign.center,
              ),
            ),
            SizedBox(height: 15),
            Container(
              width: 380,
              decoration: BoxDecoration(
                border: Border(
                  top: BorderSide(
                    width: 4.0,
                    color: const Color(0xff414833),
                  ),
                ),
              ),
              alignment: Alignment.topLeft,
              child: Text(
                '''
有害垃圾主要品种包括：
废电池、废日光灯管、废水银温度计、过期药品、废镍镉电池和废氧化汞电池、废药品及其包装物、废含汞温度计、废含汞血压计等等''',
                style: TextStyle(
                  color: const Color(0xff414833),
                  fontWeight: FontWeight.w600,
                  fontSize: 18,
                ),
                textAlign: TextAlign.center,
              ),
            ),
          ],
        ),
      )),
    );
  }
}
